package com.sian.security.web.service;

import java.io.Serializable;
import java.util.List;

import org.apache.log4j.Logger;
import org.springframework.beans.factory.DisposableBean;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Scope;
import org.springframework.context.annotation.ScopedProxyMode;
import org.springframework.stereotype.Component;

import com.sian.security.web.model.Authority;
import com.sian.security.web.model.Credential;

@Component("userPreferences")
@Scope(value="session", proxyMode = ScopedProxyMode.TARGET_CLASS)
public class UserPreferences implements Serializable  {

	private static final long serialVersionUID = -6861245548077147946L;
	private static Logger logger = org.apache.log4j.LogManager.getLogger(UserPreferences.class);
	
	List<Authority> authorities;
	Credential credential;
	
	public List<Authority> getAuthorities() {
		return authorities;
	}
	public void setAuthorities(List<Authority> authorities) {
		this.authorities = authorities;
	}
	public Credential getCredential() {
		return credential;
	}
	public void setCredential(Credential credential) {
		this.credential = credential;
	}
}
